package com.minelx.datamicroscope.core.display;

import com.minelx.datamicroscope.core.query.ResourceMapping;
import com.minelx.hellopandas.core.DataFrame;
import io.gitee.minelx.filesystem.File;

import java.util.List;
import java.util.Map;

import static java.util.Collections.emptyMap;

public interface Merger {
	DataFrame merge(List<ResourceMapping> files, String destinationURI);

	static Merger join(Map<String, String> howMapping) {
		return new JoiningMerger(howMapping);
	}

	static Merger leftJoin() {
		return join(emptyMap());
	}
}
